package com.zzy.face.dao;

import com.zzy.face.model.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @Author 朱泽玉
 * @Create 2022/1/29 11:03
 * @Description
 * @Modified By:
 */
@Repository
public interface AccountDao extends JpaRepository<Account ,Long>, JpaSpecificationExecutor<Account> {
    public Account findByMobile(String mobile);
    //    @Query("SELECT new com.zzy.face.dto.TeacherInfo(a.uid,a.Identity,a.birthday,a.college,a.date_time,a.idNumber,a.mobile,a.name,a.sex,a.state) from Account as a left join Teacher as t on a.uid = t.uid and a.uid = ?1 where t.uid is not null ")
//    TeacherInfo findTeacherInfo(Long uid);
}
